const env = process.env

const DEV_URL = {
  api: 'http://test-game-api.bestpeng.com/api/',
  prUrl: 'https://zhuanduobao-oss.bestpeng.com/uploads/'
}

const TEST_URL = {
  api: 'http://test-game-api.bestpeng.com/api/',
  prUrl: 'https://zhuanduobao-oss.bestpeng.com/uploads/'
}

const PROD_URL = {
  api: 'https://api.bestpeng.com:91/api/',
  prUrl: 'https://zhuanduobao-oss.bestpeng.com/uploads/'
}

export const BASE_URL = env.NODE_ENV === 'production' ? PROD_URL : env.NODE_ENV === 'test' ? TEST_URL : DEV_URL

export const ERR_OK = 0
